#include <stdio.h>
int main()
{
	int a = 2;
	int b = 2023;
	int c = 1000;
	int d = 1;
	for (int i = 0; i <= b; i++)
	{
		d = (d* a) % c;
	}
	printf("%d", d);
	return 0;
}